﻿<Window x:Class="frmFinances"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Financial Details" Height="737" Width="803" Background="Gray" WindowStyle="ToolWindow" WindowStartupLocation="CenterScreen">
    <Grid>
        <GroupBox Header="Quoted Charges" Height="240" Margin="12,12,12,0" Name="grpQCharges" VerticalAlignment="Top" BorderThickness="2">
            <Grid>
                <ListView Margin="6,6,99,32" Name="lvwQuoted"  >
                    
                      <ListView.View>
                    <GridView Selector.IsSelected="True">
                        <GridViewColumn Width="170" DisplayMemberBinding="{Binding Path=Charge_Type}">Type</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Category}">Category</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_Amount}">Net</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_VAT}">Tax</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_TPCost}">Third Party</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=ChgIncome}">Income</GridViewColumn>
                        <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=ChgGross}">Gross</GridViewColumn>
                    </GridView>
                    </ListView.View>
                    </ListView>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,6,6,0" Name="btnAddCharge" VerticalAlignment="Top" Width="87">Add Charge</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,35,6,0" Name="btnDefaults" VerticalAlignment="Top" Width="87">Load Defaults</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,64,6,0" Name="btnAddCredit" VerticalAlignment="Top" Width="87">Add Credit</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,93,6,0" Name="btnDelete" VerticalAlignment="Top" Width="87">Delete</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,0,6,29" Name="btnInvoice" VerticalAlignment="Bottom" Width="87">Invoice</Button>
                <ComboBox BorderBrush="Black" Height="20" HorizontalAlignment="Right" Margin="0,0,6,3" Name="drpMethod" VerticalAlignment="Bottom" Width="98">
                    <ComboBoxItem>Print</ComboBoxItem>
                    <ComboBoxItem>Email</ComboBoxItem>
                    <ComboBoxItem>H: Drive</ComboBoxItem>
                </ComboBox>
                <Label Height="21" HorizontalAlignment="Left" Margin="60,0,0,5" Name="Label10" VerticalAlignment="Bottom" Width="74">Net Quoted</Label>
                <Label Height="21" Margin="270,0,0,5" Name="Label12" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="85">Gross Quoted</Label>
                <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" HorizontalAlignment="Left" Margin="142,0,0,5" Name="lblQuoteNet" VerticalAlignment="Bottom" Width="110" />
                <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" Margin="369,0,260,5" Name="lblQuoteGross" VerticalAlignment="Bottom" />
                <Button Height="37" HorizontalAlignment="Right" Margin="0,0,6,61" Name="btnProformaInv" VerticalAlignment="Bottom" Width="87" >
                    <TextBlock TextWrapping="Wrap" Text="Proforma Invoice"></TextBlock>
                </Button>
            </Grid>
        </GroupBox>
        <GroupBox Header="Invoiced Charges" Margin="12,258,12,228" Name="grpICharges" BorderThickness="2">
            <Grid Height="189" Width="741">
                <ListView Margin="6,6,99,32" Name="lvwInvoiced">
                    <ListView.View>
                        <GridView Selector.IsSelected="True">
                            <GridViewColumn Width="70" DisplayMemberBinding="{Binding Path=Charge_InvoiceID}">Invoice</GridViewColumn>
                            <GridViewColumn Width="100" DisplayMemberBinding="{Binding Path=Charge_Type}">Type</GridViewColumn>
                            <GridViewColumn Width="100" DisplayMemberBinding="{Binding Path=Category}">Category</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_Amount}">Net</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_VAT}">Tax</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Charge_TPCost}">Third Party</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=ChgIncome}">Income</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=ChgGross}">Gross</GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,6,6,0" Name="btnCreditCharges" VerticalAlignment="Top" Width="87">Credit Charges</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,35,6,0" Name="btnWriteOff" VerticalAlignment="Top" Width="87">Write Off</Button>
                <Label Height="21" HorizontalAlignment="Left" Margin="60,0,0,5" Name="Label1" VerticalAlignment="Bottom" Width="74">Net Invoiced</Label>
                <Label Height="21" HorizontalAlignment="Left" Margin="270,0,0,5" Name="Label2" VerticalAlignment="Bottom" Width="85">Gross Invoiced</Label>
                <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" HorizontalAlignment="Left" Margin="142,0,0,5" Name="lblInvoiceNet" VerticalAlignment="Bottom" Width="110" />
                <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" Margin="369,0,260,5" Name="lblInvoiceGross" VerticalAlignment="Bottom" />
            </Grid>
        </GroupBox>
        <GroupBox Header="Payments" Margin="12,0,12,35" Name="grpPayments" Height="174" VerticalAlignment="Bottom" BorderThickness="2">
            <Grid>
                <ListView Margin="6,6,99,32" Name="lvwPayments" >
                    <ListView.View>
                        <GridView Selector.IsSelected="True">
                            <GridViewColumn Width="170" DisplayMemberBinding="{Binding Path=Payment_ID}">Payment ID</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=DTPaid}">Date</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Payment_Type}">Type</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Payment_Method}">Method</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Payment_Amount}">Amount</GridViewColumn>
                            <GridViewColumn Width="80" DisplayMemberBinding="{Binding Path=Payment_Enteredby}">Entered By</GridViewColumn>
                        </GridView>
                    </ListView.View>
                </ListView>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,6,6,0" Name="btnAddPayment" VerticalAlignment="Top" Width="87">Add Payment</Button>
                <Button Height="22.8" HorizontalAlignment="Right" Margin="0,35,6,0" Name="btnReprintReceipt" VerticalAlignment="Top" Width="87">Reprint Receipt</Button>
                <Label Height="21" HorizontalAlignment="Left" Margin="220,0,0,5" Name="Label4" VerticalAlignment="Bottom" Width="126">Total Paid ( AED )</Label>
                <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" Margin="369,0,260,5" Name="lblPaidTotal" VerticalAlignment="Bottom" />
                <Button HorizontalAlignment="Right" Margin="0,64,6,67" Name="btnRefund" Width="87">Issue Refund</Button>
            </Grid>
        </GroupBox>
        <Label Height="21" HorizontalAlignment="Left" Margin="238,0,0,8" Name="Label3" VerticalAlignment="Bottom" Width="135">Case Balance ( AED )</Label>
        <Label Background="White" BorderBrush="Black" BorderThickness="1" Height="25" Margin="387,0,278,9" Name="lblCaseBalance" VerticalAlignment="Bottom" />
        <Button Height="22.8" Margin="0,0,24,6" Name="btnClose" VerticalAlignment="Bottom" HorizontalAlignment="Right" Width="87">Close</Button>
    </Grid>
</Window>
